package apis

import (
	"gitee.com/byx_darwin/ncloud-go/core"
	"gitee.com/byx_darwin/ncloud-go/core/net/consts"
)

type DeleteTaskConditions struct {
	List []string `json:"list"`
}

type TaskDeleteRequest struct {
	core.NCloudRequest
	DeleteTaskConditions
}

func NewTaskDeleteRequestWithParams(taskUUIDList []string) *TaskDeleteRequest {
	return &TaskDeleteRequest{
		NCloudRequest: core.NCloudRequest{
			Method: consts.MethodDelete,
			Path:   "/gateway/task",
		},
		DeleteTaskConditions: DeleteTaskConditions{
			List: taskUUIDList,
		},
	}
}
